package com.niit.service;

import com.niit.model.Teacher;
import org.springframework.cloud.openfeign.FeignClient;

/**
 *  Feign注解式开发，将接口与服务提供方的对应，然后提供给Controller
 */
@FeignClient(value = "a",fallbackFactory = TeacherFallbackFactory.class)
public interface TeacherService {
    Teacher login(Teacher teacher);
}
